import request from "@/utils/request"

export type QueryObject = {
  id: string | number,
  [propsName: string]: any
}

export type MoreStatusType = 'more' | 'noMore' | 'loading' | 'error' 

export type AnyObject = {
  [propsName: string]: any
}

export default {
  reqListenlist() {
    return request.get<any, AnyObject>('/revision/subject/category')
  },

  /*
   * @description:
   * url:https://m.ximalaya.com     /revision/subject/categorySubjectList/{title}?pageNum={pageNum}&pageSize={pageSize}
   * @author 2023-08-18 15:24:46
   * @param: 
   * @return: 
   *
  */
  
  reqdropDownList(title: string, pageNum: number, pageSize: number) {
    return request.get<any, AnyObject>(`/revision/subject/categorySubjectList/${title}?pageNum=${pageNum}&pageSize=${pageSize}`)
  },


  reqgoDeatail(url: string) {
    return request.get<any, null>(`/revision/subject/category${url}`)
  }
}